<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询酒店列表</title>
</head>
<body>
<form action="${pageContext.request.contextPath }/jiudian/deleteByIds" method="post">
    <table width="100%" border=1>
        <tr>
            <td><input type="submit" value="批量删除"/></td>
            <td> <a href="${pageContext.request.contextPath }/addjiudians.jsp">添加</a></td>
        </tr>
    </table>
    酒店列表：
    <table width="100%" border=1>
        <tr>
            <td>GID</td>
            <td>酒店名称</td>
            <td>酒店图片</td>
            <td>酒店地址</td>
            <td>酒店评价</td>
            <td>酒店类型</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${jiudianlist}" var="jiudian">
            <tr>
                <td>
                    <input type="checkbox" name="jid" value="${jiudian.jid }">
                </td>
                <td>${jiudian.jname }</td>
                <td>${jiudian.jimg}</td>
                <td>${jiudian.jaddress}</td>
                <td>${jiudian.jping}</td>
                <td>${jiudian.jtype}</td>

                <td><a href="${pageContext.request.contextPath }/jiudian/findJiudianByJid/${jiudian.jid}">修改</a>
                    <a href="${pageContext.request.contextPath }/jiudian/deleteJiudianByJid/${jiudian.jid}">删除</a>
                </td>

            </tr>
        </c:forEach>

    </table>
</form>
</body>

</html>